from app.libs.error_code import Success
from app.libs.logid import find_log_id_data
from app.libs.redprint import Redprint
from app.libs.token_auth import login_required

api = Redprint('logid')


@api.route('/<int:logid>', methods=['GET'])
def get_log_id(logid):
    data = find_log_id_data(logid)
    return Success(data=data)
